package com.example.demo.myModel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
 * 点赞
 */
@Data
@TableName("like")
public class Like extends  BaseEntity{

    /**
     * likeId,主键自增
     */
    @TableId(type = IdType.AUTO)
    private  int likeId;

    /**
     * 点赞数
     */
    private  int count;

    /**
     * 通告新闻Id,外表noticeId
     */
    private  int noticeId;

    /**
     * 点赞的学生id
     */
    private  int ID;

    /**
     * 点赞的老师的id
     */
    private  int teacherId;

}
